package com.mdz.nc.Controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mdz.nc.Entity.KsWjdc;
import com.mdz.nc.Mapper.KsWjdcMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 孟德志
 * @since 2020-05-06
 */
@Controller
@RequestMapping("/nc/ksWjdc")
public class KsWjdcController {

    @Autowired
    private KsWjdcMapper ksWjdcMapper;

    @RequestMapping("/wjdc")
    public String getlist(){
        return "wjdc";
    }

    @ResponseBody
    @RequestMapping("/getlistone")
    public List<KsWjdc> getlistone(){
        List<KsWjdc> ksWjdcListone=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",1));
        return ksWjdcListone;
    }
    @ResponseBody
    @RequestMapping("/getlisttwo")
    public List<KsWjdc> getlisttwo(){
        List<KsWjdc> ksWjdcListtwo=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",2));
        return ksWjdcListtwo;
    }
    @ResponseBody
    @RequestMapping("/getlistthree")
    public List<KsWjdc> getlistthree(){
        List<KsWjdc> ksWjdcListthree=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",3));
        return ksWjdcListthree;
    }
    @ResponseBody
    @RequestMapping("/getlistfour")
    public List<KsWjdc> getlistfour(){
        List<KsWjdc> ksWjdcListfour=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",4));
        return ksWjdcListfour;
    }
    @ResponseBody
    @RequestMapping("/getlistfive")
    public List<KsWjdc> getlistfive(){
        List<KsWjdc> ksWjdcfive=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",5,6));
        return ksWjdcfive;
    }
    @ResponseBody
    @RequestMapping("/getlistseven")
    public List<KsWjdc> getlistseven(){
        List<KsWjdc> ksWjdcseven=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",7,8));
        return ksWjdcseven;
    }
    @ResponseBody
    @RequestMapping("/getlistnine")
    public List<KsWjdc> getlistnine(){
        List<KsWjdc> ksWjdcnine=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",9,10,11,12,13));
        return ksWjdcnine;
    }
    @ResponseBody
    @RequestMapping("/getlistfourteen")
    public List<KsWjdc> getlistfourteen(){
        List<KsWjdc> ksWjdcfourteen=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",14));
        return ksWjdcfourteen;
    }
    @ResponseBody
    @RequestMapping("/getlistfifteen")
    public List<KsWjdc> getlistfifteen(){
        List<KsWjdc> ksWjdcfifteen=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",15,16,17,18));
        return ksWjdcfifteen;
    }
    @ResponseBody
    @RequestMapping("/getlistnineteen")
    public List<KsWjdc> getlistnineteen(){
        List<KsWjdc> ksWjdcnineteen=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",19));
        return ksWjdcnineteen;
    }
    @ResponseBody
    @RequestMapping("/getlisttwenty")
    public List<KsWjdc> getlisttwenty(){
        List<KsWjdc> ksWjdctwenty=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",20));
        return ksWjdctwenty;
    }
    @ResponseBody
    @RequestMapping("/getlisttwentyone")
    public List<KsWjdc> getlisttwentyone(){
        List<KsWjdc> ksWjdctwentyone=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",21,22,23));
        return ksWjdctwentyone;
    }
    @ResponseBody
    @RequestMapping("/getlisttwentyfour")
    public List<KsWjdc> getlisttwentyfour(){
        List<KsWjdc> ksWjdctwentyfour=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",24));
        return ksWjdctwentyfour;
    }
    @ResponseBody
    @RequestMapping("/getlisttwentyfive")
    public List<KsWjdc> getlisttwentyfive(){
        List<KsWjdc> ksWjdctwentyfive=ksWjdcMapper.selectList(new QueryWrapper<KsWjdc>().in("wjdc_id",25));
        return ksWjdctwentyfive;
    }
}

